package cn.schoolwow.ams.domain.block.common.operation;

import cn.schoolwow.ams.domain.block.common.BlockOperation;
import cn.schoolwow.ams.domain.block.common.BlockOperationType;
import cn.schoolwow.ams.domain.block.list.common.ListBlockOperationHandler;
import cn.schoolwow.ams.module.block.listBlock.common.domain.operation.BlockOperationPosition;

public class ListBlockHandlerBlockOperation extends BlockOperation {
    /**
     * 按钮位置
     * */
    public BlockOperationPosition position = BlockOperationPosition.Row;

    /**
     * 是否刷新列表
     * */
    public boolean refreshList = true;

    /**
     * 是否显示自定义信息
     * */
    public boolean showCustomerMessage;

    /**
     * ListBlock处理逻辑
     * */
    public ListBlockOperationHandler listBlockOperationHandler;

    public ListBlockHandlerBlockOperation(String label, ListBlockOperationHandler listBlockOperationHandler) {
        this.blockOperationType = BlockOperationType.ListBlockHandler;
        this.label = label;
        this.listBlockOperationHandler = listBlockOperationHandler;
    }
}
